package com.touchyourheart.model.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "hand_made_method")
public class HandMadeMethod implements Serializable {

  private static final long serialVersionUID = -3182074162695202535L;

  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private long id;

  @Column(name = "desp", nullable = false, length = 512)
  private String desp;

  @Column(name = "img_link", nullable = false)
  private String imgLink;

  @Column(name = "video_link", length = 128)
  private String videoLink;

  @ManyToOne
  @JoinColumn(name = "hand_made_id_fk", foreignKey = @ForeignKey(name = "hmm_hand_made_id_fk"))
  private HandMade handMade;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  

  public String getDesp() {
    return desp;
  }

  public void setDesp(String desp) {
    this.desp = desp;
  }

  public String getImgLink() {
    return imgLink;
  }

  public void setImgLink(String imgLink) {
    this.imgLink = imgLink;
  }

  public String getVideoLink() {
    return videoLink;
  }

  public void setVideoLink(String videoLink) {
    this.videoLink = videoLink;
  }

  public HandMade getHandMade() {
    return handMade;
  }

  public void setHandMade(HandMade handMade) {
    this.handMade = handMade;
  }

}
